{% extends "base.html" %}
{% block title %}自动计算最优rssi及最优客流判断时长{% endblock %}
{% block head_script_block %}

{% endblock %}
{% block body_content_block %}
<script type="text/javascript"  src="/js/comp_group_select.js"></script>


<div class="row-fluid">

    <div class="span6">
        <form class="form-inline" action="./" method="post">{% csrf_token %}
            {{ form.as_p }}
            <input type='submit' value='计算'/>
        </form>

    </div>
    <div class="span6">
        {% if datas %}

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>顾客时长(秒)</th>
                <th>期望rssi(db)</th>
                <th>当前工作日顾客(人次)</th>
                <th>当前周末顾客(人次)</th>
                <th>相似系数</th>
            </tr>
            </thead>
            <tbody>
            {% for data in datas %}
            <tr>

                <td>{{ data.walkby }}</td>
                <td>{{ data.rssi }}</td>
                <td>{{ data.weekday_flow }}</td>
                <td>{{ data.weekend_flow }}</td>
                <td>{{ data.coefficient }}</td>
            </tr>
            {% endfor %}
            </tbody>
        </table>
        {% else %}
            <h4>该时间段内未查询到参考数据.</h4>
        {% endif %}

    </div>


</div>

{% endblock %}